package org.jsbd.boss.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import javax.annotation.Resource;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IMiguReadSearchDAO;
import org.jsbd.boss.domian.MiguReadRetentDoNumStatistics;
import org.jsbd.boss.domian.MiguReadSearchVo;
import org.jsbd.boss.service.IMiguReadSearchService;
import org.springframework.stereotype.Service;

@Service("miguReadSearchService")
public class MiguReadSearchServiceImpl implements IMiguReadSearchService {

	@Resource
	private IMiguReadSearchDAO miguReadSearchDao;

	@Override
	public Map<String, Object> getNewTaskExecListPage(DataGridModel page, MiguReadSearchVo miguReadSearchVo) {
		return miguReadSearchDao.selectNewTaskExecListPage(page, miguReadSearchVo);
	}

	@Override
	public Map<String, Object> getRetentTaskExecList(MiguReadSearchVo miguReadSearchVo) {

		// 咪咕留存执行统计
		List<MiguReadRetentDoNumStatistics> list1 = miguReadSearchDao.selectRetentTaskExecList(miguReadSearchVo);
		
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("rows", list1);
		return results;
	}

}
